package com.zx.flow.api.execute.common;

import io.swagger.v3.oas.annotations.responses.ApiResponse;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>统一维护所有的响应结果</p>
 * 位于类上，将添加到所有的方法上。也可以只写到方法上面
 *
 * @author zhangxue
 */
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@ApiResponse(responseCode = "200", description = "正确")
@ApiResponse(responseCode = "400", description = "请求错误")
@ApiResponse(responseCode = "401", description = "未经授权的请求")
@ApiResponse(responseCode = "403", description = "没有访问权限")
@ApiResponse(responseCode = "404", description = "请求的资源未不到")
@ApiResponse(responseCode = "500", description = "服务器内部错误")
@ApiResponse(responseCode = "502", description = "服务器正忙，请稍后再试")
@ApiResponse(responseCode = "503", description = "服务器正忙，请稍后再试")
@ApiResponse(responseCode = "504", description = "网关超时")
@ApiResponse(responseCode = "1001", description = "参数不正确")
@ApiResponse(responseCode = "1002", description = "系统错误")
@ApiResponse(responseCode = "1003", description = "token无效")
@ApiResponse(responseCode = "2001", description = "流程处理失败")
@ApiResponse(responseCode = "5002", description = "配置错误")
@ApiResponse(responseCode = "5003", description = "无权访问")
@ApiResponse(responseCode = "9999", description = "未知异常")
public @interface ResponseStatusAnno {


}
